{
  "cells": [
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "YBjLERcEsTES"
      },
      "source": [
        "## [RapidVideOCR Demo](https://github.com/SWHL/RapidVideOCR)"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "IPBSdGqbjNpc"
      },
      "source": [
        "#### Require:\n",
        "- The RGBImages of [Video](https://www.youtube.com/watch?v=Z2Bg_usMYiA) from the VideoSubFinder software.\n",
        "- Install the RapidVideOCR"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "IT1t_86aq4QU"
      },
      "source": [
        "#### Download the RGBImages.zip and unzip it."
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 33,
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "qWiWiKJWjcH1",
        "outputId": "9b5c8098-061a-4f85-b7a8-822e1f26b166"
      },
      "outputs": [
        {
          "name": "stdout",
          "output_type": "stream",
          "text": [
            "--2023-04-09 01:47:40--  https://github.com/SWHL/RapidVideOCR/files/11184614/RGBImages.zip\n",
            "Resolving github.com (github.com)... 140.82.112.4\n",
            "Connecting to github.com (github.com)|140.82.112.4|:443... connected.\n",
            "HTTP request sent, awaiting response... 302 Found\n",
            "Location: https://objects.githubusercontent.com/github-production-repository-file-5c1aeb/405589029/11184614?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230409%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230409T014740Z&X-Amz-Expires=300&X-Amz-Signature=fa9c0cb7ec18b1113504c94f60ed8bd6c8250cd040d056396c0dc6caf5184dea&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=405589029&response-content-disposition=attachment%3Bfilename%3DRGBImages.zip&response-content-type=application%2Fx-zip-compressed [following]\n",
            "--2023-04-09 01:47:40--  https://objects.githubusercontent.com/github-production-repository-file-5c1aeb/405589029/11184614?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230409%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230409T014740Z&X-Amz-Expires=300&X-Amz-Signature=fa9c0cb7ec18b1113504c94f60ed8bd6c8250cd040d056396c0dc6caf5184dea&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=405589029&response-content-disposition=attachment%3Bfilename%3DRGBImages.zip&response-content-type=application%2Fx-zip-compressed\n",
            "Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...\n",
            "Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.\n",
            "HTTP request sent, awaiting response... 200 OK\n",
            "Length: 8314498 (7.9M) [application/x-zip-compressed]\n",
            "Saving to: ‘RGBImages.zip’\n",
            "\n",
            "RGBImages.zip       100%[===================>]   7.93M  43.3MB/s    in 0.2s    \n",
            "\n",
            "2023-04-09 01:47:40 (43.3 MB/s) - ‘RGBImages.zip’ saved [8314498/8314498]\n",
            "\n",
            "Archive:  RGBImages.zip\n",
            "   creating: RGBImages/\n",
            "  inflating: RGBImages/0_00_20_640__0_00_23_999_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_25_120__0_00_25_999_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_26_000__0_00_26_599_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_27_760__0_00_28_999_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_30_280__0_00_30_599_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_30_600__0_00_32_199_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_32_800__0_00_33_199_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_33_200__0_00_34_959_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_34_960__0_00_35_519_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_39_040__0_00_39_479_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_40_040__0_00_41_679_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_41_680__0_00_42_919_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_42_920__0_00_43_439_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_43_440__0_00_43_799_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_44_920__0_00_45_359_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_45_360__0_00_47_799_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_47_800__0_00_48_159_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_48_160__0_00_48_559_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_50_520__0_00_54_079_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_54_080__0_00_55_799_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_56_000__0_00_56_359_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_00_57_680__0_00_57_999_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_00_120__0_01_00_759_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_02_160__0_01_02_919_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_04_320__0_01_06_759_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_08_120__0_01_08_679_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_08_680__0_01_13_119_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_13_120__0_01_13_799_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_13_800__0_01_16_079_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_16_080__0_01_17_039_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_19_320__0_01_20_359_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_20_360__0_01_21_919_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_23_120__0_01_23_559_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_23_560__0_01_24_959_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_24_960__0_01_25_559_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_25_560__0_01_26_159_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_27_560__0_01_27_919_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_27_920__0_01_30_439_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_30_440__0_01_31_119_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_31_120__0_01_31_599_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_31_600__0_01_32_119_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_33_040__0_01_34_639_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_34_640__0_01_38_439_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_38_440__0_01_38_839_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_39_960__0_01_40_279_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_40_280__0_01_40_879_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_47_920__0_01_48_559_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_48_560__0_01_50_679_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_50_920__0_01_51_319_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_52_520__0_01_53_359_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_53_360__0_01_53_999_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_54_000__0_01_56_159_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_56_160__0_01_56_959_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_58_040__0_01_58_399_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_58_400__0_01_59_639_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_01_59_640__0_02_00_479_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_00_480__0_02_01_039_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_02_240__0_02_02_799_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_02_800__0_02_04_039_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_08_000__0_02_09_038_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_09_039__0_02_10_198_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_11_720__0_02_13_119_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_13_280__0_02_13_799_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_13_800__0_02_14_719_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_14_720__0_02_15_239_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_15_240__0_02_15_839_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_17_640__0_02_21_719_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_21_720__0_02_22_639_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_26_640__0_02_27_239_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_27_240__0_02_27_879_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_27_920__0_02_28_479_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_29_360__0_02_30_119_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_30_240__0_02_30_639_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_31_200__0_02_31_599_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_31_600__0_02_32_559_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_32_560__0_02_33_439_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_33_440__0_02_34_079_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_35_520__0_02_37_159_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_37_160__0_02_41_959_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_46_440__0_02_47_039_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_47_040__0_02_48_199_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_50_520__0_02_50_879_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_50_880__0_02_53_279_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_54_840__0_02_56_679_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_56_680__0_02_57_519_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_02_57_520__0_02_57_999_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_00_360__0_03_00_919_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_00_920__0_03_01_519_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_01_560__0_03_04_599_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_04_600__0_03_05_879_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_05_880__0_03_06_759_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_10_160__0_03_10_559_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_11_680__0_03_11_999_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_12_040__0_03_12_399_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_12_400__0_03_12_919_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_12_920__0_03_13_239_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_13_240__0_03_13_599_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_21_000__0_03_21_479_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_21_600__0_03_21_919_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_21_920__0_03_22_239_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_24_480__0_03_24_919_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_24_920__0_03_25_639_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_25_640__0_03_27_119_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_27_120__0_03_27_999_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_29_520__0_03_30_039_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_30_120__0_03_30_759_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_30_760__0_03_31_639_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_31_640__0_03_31_959_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_31_960__0_03_32_319_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_33_680__0_03_33_999_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_34_000__0_03_34_599_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_34_600__0_03_35_399_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_35_520__0_03_37_959_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_38_400__0_03_38_879_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_38_880__0_03_39_439_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_39_440__0_03_39_919_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_40_160__0_03_40_599_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_40_600__0_03_40_919_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_40_920__0_03_41_399_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_44_240__0_03_44_679_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_44_680__0_03_44_999_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_45_000__0_03_49_239_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_49_240__0_03_50_799_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_50_840__0_03_51_199_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_51_200__0_03_51_599_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_57_240__0_03_57_919_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_58_440__0_03_59_199_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_03_59_200__0_04_05_279_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_04_05_280__0_04_06_919_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_04_20_840__0_04_21_159_0055800000012800072001280.jpeg  \n",
            "  inflating: RGBImages/0_04_34_720__0_04_35_879_0055800000012800072001280.jpeg  \n"
          ]
        }
      ],
      "source": [
        "!wget https://github.com/SWHL/RapidVideOCR/files/11184614/RGBImages.zip\n",
        "!unzip RGBImages.zip\n",
        "!rm RGBImages.zip"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "1cTofr4Zq_WB"
      },
      "source": [
        "#### Install the RapidVideOCR package."
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 34,
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "5URYsomEqnuh",
        "outputId": "3a6093db-bfaa-4069-e92e-2e7bab97f987"
      },
      "outputs": [
        {
          "name": "stdout",
          "output_type": "stream",
          "text": [
            "Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
            "Requirement already satisfied: rapid_videocr in /usr/local/lib/python3.9/dist-packages (2.1.6)\n",
            "Requirement already satisfied: rapidocr-onnxruntime>=1.2.2 in /usr/local/lib/python3.9/dist-packages (from rapid_videocr) (1.2.5)\n",
            "Requirement already satisfied: tqdm>=4.52.0 in /usr/local/lib/python3.9/dist-packages (from rapid_videocr) (4.65.0)\n",
            "Requirement already satisfied: PyYAML in /usr/local/lib/python3.9/dist-packages (from rapidocr-onnxruntime>=1.2.2->rapid_videocr) (6.0)\n",
            "Requirement already satisfied: Pillow in /usr/local/lib/python3.9/dist-packages (from rapidocr-onnxruntime>=1.2.2->rapid_videocr) (8.4.0)\n",
            "Requirement already satisfied: onnxruntime>=1.7.0 in /usr/local/lib/python3.9/dist-packages (from rapidocr-onnxruntime>=1.2.2->rapid_videocr) (1.14.1)\n",
            "Requirement already satisfied: Shapely>=1.7.1 in /usr/local/lib/python3.9/dist-packages (from rapidocr-onnxruntime>=1.2.2->rapid_videocr) (2.0.1)\n",
            "Requirement already satisfied: pyclipper>=1.2.1 in /usr/local/lib/python3.9/dist-packages (from rapidocr-onnxruntime>=1.2.2->rapid_videocr) (1.3.0.post4)\n",
            "Requirement already satisfied: numpy>=1.19.3 in /usr/local/lib/python3.9/dist-packages (from rapidocr-onnxruntime>=1.2.2->rapid_videocr) (1.22.4)\n",
            "Requirement already satisfied: opencv-python>=4.5.1.48 in /usr/local/lib/python3.9/dist-packages (from rapidocr-onnxruntime>=1.2.2->rapid_videocr) (4.7.0.72)\n",
            "Requirement already satisfied: six>=1.15.0 in /usr/local/lib/python3.9/dist-packages (from rapidocr-onnxruntime>=1.2.2->rapid_videocr) (1.16.0)\n",
            "Requirement already satisfied: sympy in /usr/local/lib/python3.9/dist-packages (from onnxruntime>=1.7.0->rapidocr-onnxruntime>=1.2.2->rapid_videocr) (1.11.1)\n",
            "Requirement already satisfied: flatbuffers in /usr/local/lib/python3.9/dist-packages (from onnxruntime>=1.7.0->rapidocr-onnxruntime>=1.2.2->rapid_videocr) (23.3.3)\n",
            "Requirement already satisfied: protobuf in /usr/local/lib/python3.9/dist-packages (from onnxruntime>=1.7.0->rapidocr-onnxruntime>=1.2.2->rapid_videocr) (3.20.3)\n",
            "Requirement already satisfied: packaging in /usr/local/lib/python3.9/dist-packages (from onnxruntime>=1.7.0->rapidocr-onnxruntime>=1.2.2->rapid_videocr) (23.0)\n",
            "Requirement already satisfied: coloredlogs in /usr/local/lib/python3.9/dist-packages (from onnxruntime>=1.7.0->rapidocr-onnxruntime>=1.2.2->rapid_videocr) (15.0.1)\n",
            "Requirement already satisfied: humanfriendly>=9.1 in /usr/local/lib/python3.9/dist-packages (from coloredlogs->onnxruntime>=1.7.0->rapidocr-onnxruntime>=1.2.2->rapid_videocr) (10.0)\n",
            "Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.9/dist-packages (from sympy->onnxruntime>=1.7.0->rapidocr-onnxruntime>=1.2.2->rapid_videocr) (1.3.0)\n"
          ]
        }
      ],
      "source": [
        "!pip install rapid_videocr"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 35,
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "13GXToLcrFl8",
        "outputId": "d18fb2c0-79ae-4e29-9b27-de7f7e980707"
      },
      "outputs": [
        {
          "name": "stdout",
          "output_type": "stream",
          "text": [
            "Running with concat recognition.\n",
            "OCR: 100% 14/14 [00:28<00:00,  2.07s/it]\n",
            "The file has been saved in the result/result.srt\n",
            "The result has been saved to result directory.\n"
          ]
        }
      ],
      "source": [
        "!rapid_videocr -i /content/RGBImages -s result -o srt"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "DR8RbHFisLZK"
      },
      "source": [
        "#### Look the result."
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 36,
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "g2PdZnGJrsdx",
        "outputId": "c2107dd0-f099-464c-91a0-247294e69c60"
      },
      "outputs": [
        {
          "name": "stdout",
          "output_type": "stream",
          "text": [
            "1\n",
            "00:00:20,640 --> 00:00:23,999\n",
            "Eyelyinightinmydreams\n",
            "\n",
            "2\n",
            "00:00:25,120 --> 00:00:25,999\n",
            "Iseeyou\n",
            "\n",
            "3\n",
            "00:00:26,000 --> 00:00:26,599\n",
            "Iseeyou\n",
            "\n",
            "4\n",
            "00:00:27,760 --> 00:00:28,999\n",
            "Ifell you\n",
            "\n",
            "5\n",
            "00:00:30,280 --> 00:00:30,599\n",
            "That is hiow I know you go on\n",
            "\n",
            "6\n",
            "00:00:30,600 --> 00:00:32,199\n",
            "howIknowyougoon\n",
            "\n",
            "7\n",
            "00:00:32,800 --> 00:00:33,199\n",
            "That is howIkhowyougo.on\n",
            "\n",
            "8\n",
            "00:00:33,200 --> 00:00:34,959\n",
            "That is how I know you go on\n",
            "\n",
            "9\n",
            "00:00:34,960 --> 00:00:35,519\n",
            "That is how I know you go on\n",
            "\n",
            "11\n",
            "00:00:40,040 --> 00:00:41,679\n",
            "Faracrossthedistance\n",
            "\n",
            "12\n",
            "00:00:41,680 --> 00:00:42,919\n",
            "Faracross the distance\n",
            "\n",
            "13\n",
            "00:00:42,920 --> 00:00:43,439\n",
            "Faracross thelistance\n",
            "\n",
            "14\n",
            "00:00:43,440 --> 00:00:43,799\n",
            "Faracrosshe Mistance\n",
            "\n",
            "15\n",
            "00:00:44,920 --> 00:00:45,359\n",
            "and Spaces between us\n",
            "\n",
            "16\n",
            "00:00:45,360 --> 00:00:47,799\n",
            "and Spaces between us\n",
            "\n",
            "17\n",
            "00:00:47,800 --> 00:00:48,159\n",
            "and Spaces betweenus\n",
            "\n",
            "18\n",
            "00:00:48,160 --> 00:00:48,559\n",
            "and Spacesbetween us\n",
            "\n",
            "19\n",
            "00:00:50,520 --> 00:00:54,079\n",
            "u havecometo showyou go on\n",
            "\n",
            "20\n",
            "00:00:54,080 --> 00:00:55,799\n",
            "You have come to show vou go on\n",
            "\n",
            "21\n",
            "00:00:56,000 --> 00:00:56,359\n",
            "You haveoreto show y\n",
            "\n",
            "23\n",
            "00:01:00,120 --> 00:01:00,759\n",
            "Near\n",
            "\n",
            "24\n",
            "00:01:02,160 --> 00:01:02,919\n",
            "far\n",
            "\n",
            "25\n",
            "00:01:04,320 --> 00:01:06,759\n",
            "reveryouare\n",
            "\n",
            "26\n",
            "00:01:08,120 --> 00:01:08,679\n",
            "I belieye that the heart does go\n",
            "on\n",
            "\n",
            "27\n",
            "00:01:08,680 --> 00:01:13,119\n",
            "I believe that the heart does go\n",
            "on\n",
            "\n",
            "28\n",
            "00:01:13,120 --> 00:01:13,799\n",
            "I believe that the heart does go\n",
            "on\n",
            "\n",
            "29\n",
            "00:01:13,800 --> 00:01:16,079\n",
            "I believe that the heart does go\n",
            "on\n",
            "\n",
            "30\n",
            "00:01:16,080 --> 00:01:17,039\n",
            "I believe that the heart does go\n",
            "on\n",
            "\n",
            "31\n",
            "00:01:19,320 --> 00:01:20,359\n",
            "Once more\n",
            "\n",
            "32\n",
            "00:01:20,360 --> 00:01:21,919\n",
            "Once more\n",
            "\n",
            "33\n",
            "00:01:23,120 --> 00:01:23,559\n",
            "thedoor\n",
            "you\n",
            "\n",
            "34\n",
            "00:01:23,560 --> 00:01:24,959\n",
            "you open the door\n",
            "\n",
            "35\n",
            "00:01:24,960 --> 00:01:25,559\n",
            "youopen thedoor\n",
            "\n",
            "36\n",
            "00:01:25,560 --> 00:01:26,159\n",
            "you open the door\n",
            "\n",
            "37\n",
            "00:01:27,560 --> 00:01:27,919\n",
            "And you're here in my heart\n",
            "\n",
            "38\n",
            "00:01:27,920 --> 00:01:30,439\n",
            "And you're here in my heart\n",
            "\n",
            "39\n",
            "00:01:30,440 --> 00:01:31,119\n",
            "And you're here in iny heart\n",
            "\n",
            "40\n",
            "00:01:31,120 --> 00:01:31,599\n",
            "Andyou're here inm heart\n",
            "\n",
            "41\n",
            "00:01:31,600 --> 00:01:32,119\n",
            "Andeinmneart\n",
            "\n",
            "42\n",
            "00:01:33,040 --> 00:01:34,639\n",
            "my heartwim goonand\n",
            "on\n",
            "\n",
            "43\n",
            "00:01:34,640 --> 00:01:38,439\n",
            "my heart will go on and\n",
            "on\n",
            "\n",
            "44\n",
            "00:01:38,440 --> 00:01:38,839\n",
            "my heart will go on and\n",
            "on\n",
            "\n",
            "47\n",
            "00:01:47,920 --> 00:01:48,559\n",
            "Love can touch us onetime\n",
            "\n",
            "48\n",
            "00:01:48,560 --> 00:01:50,679\n",
            "Lovecantouch usonetime\n",
            "\n",
            "49\n",
            "00:01:50,920 --> 00:01:51,319\n",
            "Love cantouch usone time\n",
            "\n",
            "50\n",
            "00:01:52,520 --> 00:01:53,359\n",
            "And lastforaJifetime\n",
            "\n",
            "51\n",
            "00:01:53,360 --> 00:01:53,999\n",
            "And lastfora lifetime\n",
            "\n",
            "52\n",
            "00:01:54,000 --> 00:01:56,159\n",
            "And last fora lifetime\n",
            "\n",
            "53\n",
            "00:01:56,160 --> 00:01:56,959\n",
            "An st for a lifetime\n",
            "\n",
            "54\n",
            "00:01:58,040 --> 00:01:58,399\n",
            "And never let go till\n",
            "\n",
            "55\n",
            "00:01:58,400 --> 00:01:59,639\n",
            "And never let go till\n",
            "\n",
            "56\n",
            "00:01:59,640 --> 00:02:00,479\n",
            "And never let go till\n",
            "\n",
            "57\n",
            "00:02:00,480 --> 00:02:01,039\n",
            "And never let go till\n",
            "\n",
            "58\n",
            "00:02:02,240 --> 00:02:02,799\n",
            "we're gone\n",
            "\n",
            "59\n",
            "00:02:02,800 --> 00:02:04,039\n",
            "we're gone\n",
            "\n",
            "62\n",
            "00:02:11,720 --> 00:02:13,119\n",
            "one true time\n",
            "\n",
            "65\n",
            "00:02:14,720 --> 00:02:15,239\n",
            "Tholdto\n",
            "\n",
            "66\n",
            "00:02:15,240 --> 00:02:15,839\n",
            "I holdto\n",
            "\n",
            "67\n",
            "00:02:17,640 --> 00:02:21,719\n",
            "Imy lifewe'll alwaysgo on\n",
            "\n",
            "68\n",
            "00:02:21,720 --> 00:02:22,639\n",
            "I my life we'll always go on\n",
            "\n",
            "69\n",
            "00:02:26,640 --> 00:02:27,239\n",
            "Near\n",
            "\n",
            "70\n",
            "00:02:27,240 --> 00:02:27,879\n",
            "Near\n",
            "\n",
            "72\n",
            "00:02:29,360 --> 00:02:30,119\n",
            "far\n",
            "\n",
            "74\n",
            "00:02:31,200 --> 00:02:31,599\n",
            "whereveryou are\n",
            "\n",
            "75\n",
            "00:02:31,600 --> 00:02:32,559\n",
            "wherever you-are\n",
            "\n",
            "76\n",
            "00:02:32,560 --> 00:02:33,439\n",
            "whereveryou are\n",
            "\n",
            "77\n",
            "00:02:33,440 --> 00:02:34,079\n",
            "whereveryou are\n",
            "\n",
            "78\n",
            "00:02:35,520 --> 00:02:37,159\n",
            "I believe that the heart does go\n",
            "on\n",
            "\n",
            "79\n",
            "00:02:37,160 --> 00:02:41,959\n",
            "I believe that the heart does go\n",
            "on\n",
            "\n",
            "80\n",
            "00:02:46,440 --> 00:02:47,039\n",
            "Once more\n",
            "\n",
            "81\n",
            "00:02:47,040 --> 00:02:48,199\n",
            "Oncemore\n",
            "\n",
            "82\n",
            "00:02:50,520 --> 00:02:50,879\n",
            "you openthe dooi\n",
            "\n",
            "83\n",
            "00:02:50,880 --> 00:02:53,279\n",
            "you open the door\n",
            "\n",
            "84\n",
            "00:02:54,840 --> 00:02:56,679\n",
            "And you're here in my heart\n",
            "\n",
            "85\n",
            "00:02:56,680 --> 00:02:57,519\n",
            "And you're here in my heart\n",
            "\n",
            "86\n",
            "00:02:57,520 --> 00:02:57,999\n",
            "And you're here in my heart\n",
            "\n",
            "87\n",
            "00:03:00,360 --> 00:03:00,919\n",
            "heartwill goonand\n",
            "\n",
            "88\n",
            "00:03:00,920 --> 00:03:01,519\n",
            "my heart will go on and\n",
            "on\n",
            "\n",
            "89\n",
            "00:03:01,560 --> 00:03:04,599\n",
            "my heart will go on and\n",
            "on\n",
            "on\n",
            "my heart will go on and\n",
            "\n",
            "90\n",
            "00:03:04,600 --> 00:03:05,879\n",
            "on\n",
            "\n",
            "91\n",
            "00:03:05,880 --> 00:03:06,759\n",
            "my heart will go on and\n",
            "on\n",
            "\n",
            "102\n",
            "00:03:24,920 --> 00:03:25,639\n",
            "You're here\n",
            "\n",
            "103\n",
            "00:03:25,640 --> 00:03:27,119\n",
            "You're here\n",
            "\n",
            "104\n",
            "00:03:27,120 --> 00:03:27,999\n",
            "You're here\n",
            "\n",
            "105\n",
            "00:03:29,520 --> 00:03:30,039\n",
            "there's nothing I fear\n",
            "\n",
            "106\n",
            "00:03:30,120 --> 00:03:30,759\n",
            "there's nothing Ifear\n",
            "\n",
            "107\n",
            "00:03:30,760 --> 00:03:31,639\n",
            "there's nothing Ifear\n",
            "\n",
            "108\n",
            "00:03:31,640 --> 00:03:31,959\n",
            "there's nothing I fear\n",
            "\n",
            "109\n",
            "00:03:31,960 --> 00:03:32,319\n",
            "there nothigIfear\n",
            "\n",
            "110\n",
            "00:03:33,680 --> 00:03:33,999\n",
            "AndIknow\n",
            "\n",
            "111\n",
            "00:03:34,000 --> 00:03:34,599\n",
            "AndIknow\n",
            "\n",
            "112\n",
            "00:03:34,600 --> 00:03:35,399\n",
            "AndIknow\n",
            "\n",
            "113\n",
            "00:03:35,520 --> 00:03:37,959\n",
            "that my heart will you go on\n",
            "\n",
            "114\n",
            "00:03:38,400 --> 00:03:38,879\n",
            "that my heart will you go on\n",
            "\n",
            "115\n",
            "00:03:38,880 --> 00:03:39,439\n",
            "that my heart will you go on\n",
            "\n",
            "116\n",
            "00:03:39,440 --> 00:03:39,919\n",
            "that my heart will you go on\n",
            "\n",
            "117\n",
            "00:03:40,160 --> 00:03:40,599\n",
            "that my heart will you go on\n",
            "\n",
            "118\n",
            "00:03:40,600 --> 00:03:40,919\n",
            "that my heart will you go on\n",
            "\n",
            "119\n",
            "00:03:40,920 --> 00:03:41,399\n",
            "that my heart will you go on\n",
            "\n",
            "120\n",
            "00:03:44,240 --> 00:03:44,679\n",
            "Weill stay foreverthsway\n",
            "\n",
            "121\n",
            "00:03:44,680 --> 00:03:44,999\n",
            "We'll stayforever this way\n",
            "\n",
            "122\n",
            "00:03:45,000 --> 00:03:49,239\n",
            "We'll stay forever this way\n",
            "\n",
            "123\n",
            "00:03:49,240 --> 00:03:50,799\n",
            "We'll stay forever this way\n",
            "\n",
            "124\n",
            "00:03:50,840 --> 00:03:51,199\n",
            "We'll stay forever this way\n",
            "\n",
            "125\n",
            "00:03:51,200 --> 00:03:51,599\n",
            "We'll stay forever this way\n",
            "\n",
            "126\n",
            "00:03:57,240 --> 00:03:57,919\n",
            "You are And in my heart\n",
            "\n",
            "127\n",
            "00:03:58,440 --> 00:03:59,199\n",
            "my heart will go on and\n",
            "on\n",
            "\n",
            "128\n",
            "00:03:59,200 --> 00:04:05,279\n",
            "my heart will go on and\n",
            "on\n",
            "\n",
            "129\n",
            "00:04:05,280 --> 00:04:06,919\n",
            "my heart will go on and\n",
            "on\n",
            "\n"
          ]
        }
      ],
      "source": [
        "!cat result/result.srt"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "id": "cNjpqvivs1ZA"
      },
      "outputs": [],
      "source": []
    }
  ],
  "metadata": {
    "colab": {
      "provenance": []
    },
    "kernelspec": {
      "display_name": "Python 3",
      "name": "python3"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 0
}
